xend: specify the slot for pass-through devices
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 20 Mar 2009 12:09:20 +0000 (12:09 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 20 Mar 2009 12:09:20 +0000 (12:09 +0000)
commit5534b7d9866f754c269ba33c7602d93cc4ff9ecd
tree41fc325ffe2257ff72afbad685488a95b80da9c7
parenta7eb53a53f1325377df30ca069262b59a01cbbee
xend: specify the slot for pass-through devices

Currently a slot may be specified for a hot-plug device,
but not for a pass-through device that is inserted at boot time.
This patch adds support for the latter.

The syntax is:
     BUS:DEV.FUNC[@VSLOT]
e.g: 0000:00:1d:0@7

This may be important as recent changes that allow any free PCI
slot to be used for pass-through (and hotplug) may case pass-through
devices to be assigned in different locations to before. Amongst
other things, specifying the slot will allow users to move them
back, if there is a need.

Signed-off-by: Simon Horman <horms@verge.net.au>
tools/python/xen/xend/server/pciif.py
tools/python/xen/xm/create.py